Convert `router.coffee` to `router.js`