Various IE9 bugfixes, guards for certain dom operations.