title: PhoneGap/cordova issue with RequireJS's text plugin
body: <p>I'm trying to get a simple web project running via <a href="http://phonegap.com/">PhoneGap</a>. The site uses <a href="http://requirejs.org/">RequireJS</a> to load modules asynchronously. It also has <a href="http://handlebarsjs.com/">Handlebars</a> templates which I'm loading via the <a href="https://github.com/requirejs/text">RequireJS text plugin</a>.</p>
  
  <p>The site works fine when served from a local HTTP server.  However on the device it fails to render. Debugging on PhoneGap is tricky (though <a href="http://debug.phonegap.com">can be done to some extent</a>), but as far as I can tell, the issue is related to the loading of these templates using the RequireJS text plugin.</p>
  
  <p>The weinre-based debugger provided by PhoneGap shows an error string in the console:</p>
  
  <blockquote>
    <p>JSCallback Error: Request failed.</p>
  </blockquote>
  
  <p>Can anyone recommend a solution?</p>