Update elasticsearch.js