How to chain plain Javascript and Jquery
<p>I have a code like this:</p>

<pre><code>document.body.innerHTML=data();
</code></pre>

<p>I would like to do something (url/split) after this code has finished:</p>

<pre><code>$(data).find('a').prop('href', function(_, href){
    url = href.split('/');          
    return href.replace(url[2], 'someUrl');

}); 
</code></pre>

<p>How do I chain the two codes together? I tried:</p>

<pre><code>document.body.innerHTML=data().end().find('a').prop('href', function(_, href){
    url = href.split('/');          
    return href.replace(url[2], 'someUrl');

})
</code></pre>

<p>doesn't work, tried some other variations with no luck. </p>
