apply same pattern for app.js
gjslint style fix