fixed sweet and sour functions and added jquery gem