elasticsearch.js sample with angular