Revert "Tentative fix for IE window problem"

This reverts commit 7bceff58dd4c0ab3d44baed071782d85782fbaf9.