Added support for IE11.

IE11 appears to behave differently to previous versions. I couldn't find much documentation on this, but assume it may be the behaviour going forward... This needs to be done in *addition* to an on-load event listener.