Re-organize AngularJS resources