Readibility

Tidy up app.js for readability