move code under app. remove coffeescript. split up app.js