Adding a hack for IE10

I would like to contribute adding a tested hack for IE10 and later versions (see code between lines 516~530).