added javascript to index