CouchDB cookie authentication example with PouchDB