added example code to index.html