Update for jQuery 1.10+

Thanks to ashoudy