Get current URL, and strip it down
<p>I have a URL like:</p>

<pre><code>http://url.test.com/account/name/pages/Stuff.html
</code></pre>

<p>I want to take 'Stuff' and apply that as a class to body.</p>

<pre><code>&lt;body class="Stuff"&gt;

...

&lt;/body&gt;
</code></pre>

<ol>
<li><p>How can I get the current URL?</p></li>
<li><p>How can I extract the text 'Stuff' after the final '/'</p></li>
<li><p>Then add the class 'Stuff' to body?</p></li>
</ol>
