Fix bug in router.js.coffee