JS sub-generator.