Update index.html

Add the initWidget() function.
Callback function will be defined in the next step.