minor changes in cbl-replication.js