Update app.js, fixes jshint errors