fix for jquery v1.9