promisified wd.js exporter
wd.js exporter code cleanup
correct require statement in exported output
Merge pull request #19 from bernii/master

Promisified wd.js exporter