[TIDOC-1898] Update for JavaScript version of docgen