Improved the way we inject json urls into the js