Simple alternative to elasticsearch.angular based on $http