jQuery fix for GF 1.7.7