Refactor/convert controllers to coffeescript