Quick restore of compatibility with jQuery < 1.7