added js conversion, and this.env access through envars