Update couchDB.js