added jquery to code for efficency (and practice)