Use NodeGenerator instead of Generator in index.js