added js.env.{cwd,chdir}