title: JS files getting executed itself when added to web-resource in JIRA
body: <p>I'm developing a Jira plugin and came through the below problem.
  I have 2 js files a.js and b.js added to web-resource mapping in atlassin-plugin.xml. Initially the JavaScript of a.js was in a.vm file and JavaScript of b.js was in b.vm file. I thought to add the JavaSrcipts into seperate JS files and link them to vm files.</p>
  
  <p>And when I run the app and do a button click which should only trigger a.js, I could see that JavaScript in b.js also got executed. But when I add the content of b.js back to b.vm file and remove b.js from web-resource mapping, it didn't get executed unnecessarily. I have mapped the .js files in in atlassin-plugin.xml as below. </p>
  
  <pre><code>&lt;web-resource key="resourceKey" name="Resources" &gt;   
      &lt;description&gt;JavaScript&lt;/description&gt;
      &lt;resource type="download" name="a.js" location="js/a.js" /&gt;
      &lt;resource type="download" name="b.js" location="js/a.js" /&gt;
      &lt;context&gt;jira.admin&lt;/context&gt;
  &lt;/web-resource&gt;
  </code></pre>
  
  <p>And called it in both the .vm files as below:  </p>
  
  <pre><code>$webResourceManager.requireResource("plugginKey123:resourceKey")
  </code></pre>
  
  <p>The content of b.js is simply something like below:       </p>
  
  <pre><code>jQuery(document).ready(function() {                                                
      alert("inside b.js!");  
  });
  </code></pre>
  
  <p>What could have gone wrong or have I missed something? Any help would be appreciated.
  Thanks.</p>