fix app.js like jshint advice