Make this support Elasticsearch 1.0.0
Helper loading should happen in onload.