Update index.html

added a document ready event example (non-IE8)