Extends JavaScript fixes to jQuery.mode.