added javascript to index

Added Javascript capability to the index.html