AngularJS application prototype