fixed call to function removed in jQuery 1.9.0