fix jQuery checking problem (thx Syouji.Y)