title: How can I dynamically add a class to 'body' using JavaScript only for the home page?
body: <p>I added this to the head, but it's not working:</p>
  
  <pre><code>&lt;script&gt;
  var xpathname = (window.location.pathname);
  if (xpathname ==('/')) {
  $('body').addClass('home');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>The site is here: <a href="http://xotdr.unxpr.servertrust.com/" rel="nofollow">http://xotdr.unxpr.servertrust.com/</a></p>
  
  <p>Volusion doesn't allow developers to code freely so there are a lot of workarounds that I need to implement, unfortunately.</p>
  
  <p>Edit: I want the class to show only on the home page <code>body</code>.</p>