Update index.html

Moved code to button