Refactored how various AngularJS components are defined to focus more on using JavaScript patterns and creating objects that are then tied into AngularJS.