Update getCookie.js