Only use one var statement and preprend jquery variables by a $ as suggested by @danielbreves