[BenweiZhu] put all cookie methods to cookieUtil.js