It sounds like the form is being submitted and the page is posting. You could probably override the submit function and prevent default events to prevent the document.ready from firing again.
Or, in your document.ready, check if the page is already loaded and don't do anything if it is.