refactor: use document.documentMode to determine msie version