use document.readyState for Util.scrollToBottom