Making things work in both ie9 and ie10