(fix) removed an extra block of code in router.js & fixed typo