updated router.js