Fix to jQuery 1.6+