added jquery mode