jquery references got messed up