added jquery as depency, fixed bugs