[travis,test] fix not-running js tests on travis; better env variables handling