window.onerror doesn't work. Does anyone know of a way to catch all uncaught errors?