removed onerror in readyState callback