Update index.html

Adding in comments and also fixing onMessage missing pass.