Change to place cursor back in original position.

Changed function so that instead of moving cursor to the end of the document to place the footnote, it cuts the text to the end of the end of the document first, then pastes it back bookended by the footnote tag and the footnote, allowing the cursor to be returned to the original position with the new %|% text token in KM6.