Native Javascript, Use DocumentCookie