[BUGFIX beta] Update router.js.
Merge pull request #5641 from rwjblue/update-router

[BUGFIX beta] Update router.js.