add Code gen 2 (from python to js)