Added javascript to index file