Update elasticsearch-plugin.js