cleaned up app.js, removed console.logs and added comments