JS backend: test for toGenerator from stdlib
JS backend: compile some builtins to builtins.js instead of stdlib