Update for jQuery 1.9 (breaks compatibility with jQuery < 1.6)