Converted account controller to coffeescript