update app.coffee to fix coffeescript middleware