updates reference jquery.cookie
fixes logic typo