Removed DOM extension from IE8

Extending the DOM in IE8 is a particularly bad idea (and it is not necessary), put in a function to detect.