Fix dependency injection in routes.js.erb