workaround for jquery bug on some servers