Make it compatible with jQuery 1.9