store cookie on document instead of jqlite wrapper.
wrap document if angular document is not available.
remove references to angular wrapped document.