updated cookie.js