Compatibility with jQuery UI 1.10

Hello ... 

If you don't mind I have attached a pull request addressing the compatibility issue with jQuery UI 1.10.