documented merging cs-wd.js functionality