Fixing up app.js