Store cookie on document

I'm guessing the intent was to store the cookie on the document rather than the jqlite wrapper.