Send JavaScript errors back to caller

As a developer
I would like to see any JavaScript errors happening when running tests
So it is easier to find the root cause of problems