set env for javascript. kinda hacky