Update index.html

moved javascript to header.