Updated router.js