Added support for jQuery UI 1.8