Fix compat issues with newer jQuery UI versions