added html scripting to index.html