correct Javascript syntax errors in app.js raised by JSHint
fix a bug of throwing out error in router.js due to no matched recipes