minor fixes at app.js