Fix issue with jQuery 1.9