So, before you ask why, the idea is to find the position of the text on the screen, the only way I've found to do that is it's an actual element.
$('button#orphan').click(function(){
//The vars are defined globally for debugging.
pNodeSplitText = new Array();
pNodes=$('p');
orphanedNodes=new Array();
pNodes.each(function(index){
pNodesHTMLbefore=pNodes.eq(index).html(); //May not be nessicary
pNodeSplitText[index] = pNodes.eq(index).text().split(' '); //To get each text item
pNodeSplitText.each(function(i){
// this is where i will wrap each wrord, but how?
})
})
})