Update index.html

changed init code position