title: Include local JavaScript within PhoneGap on Windows Phone 7
body: <p>I have a PhoneGap application designed to work on multiple mobile platforms. I'm loading a dynamic HTML content from an external page on the Internet using jQuery Mobile. The problematic system is Windows Phone 7.</p>
  
  <p>This is what I get from the external page, with the URL of the script tag already replaced to load from the phone instead of from the net to save bandwidth:</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8" src="x-wmapp1:/app/www/test.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This works fine on Android, iPhone and even BlackBerry when I replaced the <em>x-wmapp1:</em> part by a respective counterpart (e.g. file:///android_asset/www/ on Android). However, on Windows Phone 7 it doesn't seem to work at all.</p>
  
  <p>When I try to load the same URL via $.getScript function, it always returns a 404 eror, even if I try and load it with a relative path only.</p>
  
  <p>Any suggestions?</p>