Update index.html

Add JavaScript code