Added demo code to index.html