Wd.js wrapper that uses Generators for cleaner code