remove ES6 code that regenerator does not handle