AngularJS refactoring and files restructuring