IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
NPMedit
If you use npm to manage your dependencies, then just run:
npm install elasticsearch-browser