Maintain text at top level after title removal

I noticed that when pjax received a response it was stripping any plain text at the top level of the DOM. This is due to the fact that JQuery's `.not()` only returns parent nodes and ignores the text. Using a function there resolves the issue.