update cookiescript