Seems to work in ie10 without these lines so can be removed.