Fixed env in js file