changed jQuery to window.jQuery