Update router.js

Fixed router