Added angularjs, refactored code to impliment angular.