Angular refactor

Refactored code to use AngularJS.
this should also be a constant. I'd do `SCALES = [ ... ]` and then `$scope.scales = SCALES`