Migrate app.js.coffee to plain js
Refactor js controllers