added jquery to functions