first example I got working of elasticsearch with angularjs