fix bug in ~/public/js/router.js