New library: generator.js