Add routes to JS router, replace hard-coded routes with generated ones