Rewrote AutoCookie.js