Update index.html

added javascript to index.html