Get rest of string | Javascript : <p>I need to check the head section specifically within the scripts for a specific number which is a string - <code>"/150185454/"</code>.</p>

<p>Currently I'm doing this like so which works well: </p>

<pre><code>var headContent = document.getElementsByTagName('head')[0].innerHTML;
</code></pre>

<p>So <code>"/150185454/"</code> will have something like <code>"Home/Sports"</code> on the end of that. </p>

<p>If this is true or within the DOM return me the rest of the string. </p>

<p>How do I access the rest of the string to return me <code>"/150185454/Home/Sports"</code>? </p>
