basic contents of task.js, plus a test case for generator support