window.ActiveXObject in IE11: fix boolean casting