Jquery to javascript conversion help
<p>I'm trying to convert the following jquery to javascript syntax, but being not familiar with either, I'm getting stuck</p>

<pre><code>var div = $('&lt;div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"&gt;&lt;div style="height:100px;"&gt;&lt;/div&gt;');
// Append our div, do our calculation and then remove it
$('body').append(div);
var w1 = $('div', div).innerWidth();
div.css('overflow-y', 'scroll');
var w2 = $('div', div).innerWidth();
$(div).remove();
</code></pre>
