Add example code to index.html