Small abstraction to env.js