Capture current version of jQuery

Do not assume $ will be available in the global scope.  This polyfill breaks in FF when $ is not in the global scope.
Merge pull request #5995 from dubbs/patch-1

Details/Summary: Capture current version of jQuery