refresh the customDelegator.js code based on the CWRC-Writer version