minor fix in cbl-document.js