Jquery UI Compatibility issue #48

Here is my attempt to fix this Jquery stuff.