refactor app.coffee (remove main.coffee)