Changing authentication angular controller to coffeescript