Made changes to app.js to be more JSHint compliant