Convert to JS.
Update http / load test, was incorrectly waiting for 'end' event which does not exist on HttpRequest