Provide JavaScript part to connect elastic.io.