title: How to add variable to src source in JS script?
body: <p>This works:</p>
  
  <pre><code>&lt;script src="chat/script.php?room=1&amp;username=John&amp;draggable=1"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and this does not: </p>
  
  <pre><code>&lt;script&gt;
  var username="John";
  &lt;/script&gt;  
  &lt;script src="chat/script.php?room=1&amp;username="+username+"&amp;draggable=1"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Any idea how to fix that ?</p>