Update router.js

rollback to orig version