Revamp get/set cookie code in jquery.cookie.