Populate routes to javascript on every full page load. Fixes #541

Before, we dynamically generated the javascript file via erb.
This causes problems with the asset pipeline, if an user changes the routes.