Fixing support check that is causing an error in IE10 on Win8