Rewrite 'js-string' code to js-routes.