Update index.html

added onready event listener