jsEnv: make a buildEnv for emacs access