code generation code bricks for JavaScript