CookieJar uses Document class, which is a layering violation