added demo code to index.html