Simplify router.js