Update router.js

query string manipulation updated