adds integration test, and missing js environment