Fixed jQuery UI 1.10 incompatibility (#7)

This patch fixes the problem for me. I have never coded anything for jQuery UI before, so I don't know if this will break backwards compatibility with jQuery 1.8.