Collects JS errors and make them available from WebDriver