added all code to index.html