Revert "Update router.js"

This reverts commit b0915f73113b9b43d51e5f4b49e9a36afc14b39d.