prototype usage of AngularJS .post