switching to elasticsearch.js