Added window.onerror alert to debug on device problems.