Changes to use POST and removes elasticsearch.js.