implement Window.cookies.get