JavaScript generator executor