This repository contains an HTML + JavaScript implementation that performs search requests client-side against an Elasticsearch server.
You can find a full explanation on how it works at https://www.lullabot.com/articles/an-html-and-javascript-client-for-elasticsearch.