adding code to index.html