Moved calls to jQuery.