Code cleanup app.coffee