Extract last string of a URL
<p>I have a URL like this:</p>

<blockquote>
  <p><code>http://www.url/name/something/#/venue</code></p>
</blockquote>

<p>I need to grab the 'venue' from each URL. I have:</p>

<pre><code>var currentUrl = $(location).attr('href');
var urlParts = currentUrl.split( "/" );
</code></pre>

<p>The split breaks up the URL.</p>

<p>I'm not sure how to grab the last part of <code>urlParts</code>.</p>
