Update index.html

make the structure of code match to the interface