Reformat app.js for readability