cookie.js updated