assigned handler to document.  instead of document.ready