Make compatible with jQuery 1.9