add window for IE8 to suppress the warning.