inject window.onerror, via a static proxy to get javascript errors