Compatibility with jquery 1.9