IE9 window event fix