Made changes to the router.js