fixes #3240 JavascriptDriver is outputting "reject" durring testing

Over the shoulder by @VeXocide