'readState' should be 'readyState'