test of using elastic.js