fix jquery fallback code