Need help with jQuery to JavaScript
<p>I want to rewrite this line as vanilla JS so it is applied quicker (and before the downloading of the jQuery library). The line is</p>

<pre><code>$(document).ready(function() { $('body').addClass('javascript'); });
</code></pre>

<p>If I added it to the html element instead, would I be able to leave off the DOM ready part? One problem with this though is the validator doesn't like the class attribute on the html element, even if it is inserted with JS.</p>

<p>So, how would I rewrite that as vanilla JS?</p>
