jasmine-jquery: deal with conflicting jQuery versions on page

Because when we're using requirejs, sometimes the local $ in the closure
and the global window.jQuery object refer to two different versions of jQuery.