Fix some ie 9 incompatibilities.