DOM ready state fix

fixed an error in DOM.State()