firstImgAfterElem5.js

/*reference:http://stackoverflow.com/questions/22920867/how-to-get-the-next-image-tag-after-specific-dom-tag-sibling-or-not*/

by guest271314

HTML

<h1>heading</h1>
<div>
  <div>
      <span>
            <img src="source"/>
       </span>
  </div>
</div>

JavaScript

var img = $("* > h1 + * img").attr("src");

$("body").append(img);