cmdi_generator.js as one global object