fix jQuery 1.9  and jQuery UI 1.10 compatibility,