Update plugin.js

Updated to resize DIV elements, selects the DIV element even when selecting a child of it. As in <div><p><strong>Title</strong></p></div>