use regenerator to compile into ES5-compliant code