Add ComJSEnv

Filed under: #1239