cleaned up app.js