Little Refactoring for AngularJS Files