Fix issue where jQuery was not properly assigned