Update index.html

add device ready event listner to onload