Cleaning up bad code in app.js.