Another lovely problem - window does not equal window in testing env on IE8.