cleaning up app.js