Showing directions output as leaflet geoJson layer

Hey @Ann,
If you want to use ors with javascript you might want to use our openrouteservice-js it should provide the same functionality you seek and you might find it easier to use.