title: Load script in html based on cookie
body: <p>How can I load scripts in a html based on the cookie value. I need to switch between development and deployment mode.</p>
  
  <p>I am using wro4j but I can't find where the error comes in that wro4j grouped js files.</p>
  
  <pre><code>&lt;head&gt;
  </code></pre>
  
  <p><strong>if (getcookie(debug-mode) load the following scripts</strong></p>
  
  <pre><code>&lt;script type="text/javascript" src="/assets/v/{{ASSET_VERSION}}/main-core.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/assets/v/{{ASSET_VERSION}}/angular-core.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/assets/v/{{ASSET_VERSION}}/angular-app.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>else load this script</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      loadIndividualJsCssFiles('config/assets.xml');
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>how to acheive this</p>