Added window.focus call to help with IE8 flakyness.

If the window lost focus, IE8 (like the know issue with FF) would fail
focus/blur based tests.