added javascript to index.html