Parsing inline javascript variable to script src as parameter
<p>I'm new to JS, so please bear with me if this question might not make sense.</p>

<p>Is it possible to parse an inline js value to a js src value?</p>

<p>Suppose I have this inline js.</p>

<pre><code>&lt;script&gt;
    window.foo = window.foo || {};
    window.foo.cam = { 'status';'logged-out'};
&lt;/script&gt;
</code></pre>

<p>This is the javascript src which I like to parse the above value to to %value%.</p>

<pre><code>&lt;script src="http://bar.com/js.php?position=bottom&amp;login_status=%value%"&gt;&lt;/script&gt;
</code></pre>
