Internet explorer 10 compat fixes (set 1)

Contains a fix for issue #41.

Note, this doesn't allow full editing functionality. Further patches still to come with additional fixes.