Change readState to readyState

Changed readState to readyState.  Was causing issues mainly with older versions of IE