AngularJS Prototype