Check for window.jQuery instead of window.$