Fixes Internet Explorer 10 compatibility

IE 10 does not use the onreadystatechange event, it is considered a legacy API and does not fire correctly.  IE 10 should simply use the onload event.

I have implemented simple browser version sniffing to rectify this.