API docs corrections in env.js