get_leftovers function

Retrieve source from beyond the end of the document.