added code to index.html