router.js updated