Full text searching for CouchDB in Javascript