Compatibility with latest jQuery