fixed up app.js