For those of us not familiar with CodeModel it would be more useful if we had an idea of what you're trying to do?
Are you looking to generate code because you want to write a DSL (or full language) and have it spit out valid JavaScript? Jison (http://zaach.github.com/jison/) does that.
If you're looking for code generation just because you're coming from Java and think you need to generate code because everything is so complex and that simple tasks require 5+ classes, each implementing more interfaces than that, and… well, you're in luck. JavaScript is much simpler than that. Welcome to modern languages. :-)