Catch some header JavaScript errors.