fixes to jQuery