added jquery support