Changed check for window.jQuery