string => number conversion in JS
<p>I have a URL, that I am parsing after the hash. The content after the hash is a math equation (eg. <a href="http://example.com/something#5+1" rel="nofollow">http://example.com/something#5+1</a>) which I would like to find the sum of (or the result of any other equation like a product, division, etc)</p>

<p>I can retrieve the numbers using:</p>

<pre><code>var url = (window.location.hash).substr(1) // returns "5+1" as a string
</code></pre>

<p>Although I find if I try to convert this to a number it doesn't actually do the math. It cuts it down to 5, instead of showing the sum of 8.</p>

<p>Is this kind of conversion possible?</p>

<p>thanks!</p>
