update cookie.js