fix jquery compatible with some old version hooks