AngularJS Base File architecture