Capture browser errors and collect them in a central location