title: how to set attribute using javascript variable
body: <p>the following is my cshtml code inside durandal application</p>
  
  <pre><code>&lt;script type="text/javascript" src="~/Scripts/require.js" 
    id="countryscript" data-main="**here i have to set value**"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I want to set script attribute <strong>data-main</strong> with my javascript variable value. How to achieve this ?</p>
  
  <p>I tried as </p>
  
  <pre><code>document.getElementById("countryscript").data-main = countrycode;
  </code></pre>
  
  <p>its showing syntax error near <strong>=</strong> sign. Need help..</p>