Removed the ready() function from document.
It's probably best not to extend the document object.