Fix + dump the generated examples in target for js and groovy