wd.js exporter code cleanup