Update couchdb_sync.js