Fixed an issue where window.jQuery would be undefined