Begin rewrite of Angular code from CoffeeScript to JavaScript