[bug973112] - Added 'window.jsErrorDetected = true;' back