Testing integration test with JavaScript