[js] compiler: first real function compilation - replace original function code with compiled code
[js] compiler: setup execution environment