added support for JS env for Linux