Update index.html

modified code for cross browser compatibility (IE 7)