Promisified wd.js exporter

Elegant use of wd.js with promises