using the AngularJS $http service to communicate with wp_ajax action.