added env
Merge pull request #17 from adowns01/refactor_js

added env