Update router.js

fixed