use test window to watch for event loop, use test window jquery

@redmunds @peterflynn I found a simpler fix. We should have been looking at the test ``window`` and not the SpecRunner's ``window``.