Update jquery and query cookie