ie6Compat is now false for Quirks mode in IE10.
Change version != 10 to version < 10
Fixed code-style.