Create PrimitiveGenerator.js