refactor app.coffee in order to suppress deprecation warnings