I am trying to get a variable into a jQuery function. I have found many other SO on it but I don\'t really understand how they would relate to my code or how the syntax work