title: HTML5 / JS app not calling one of the .js files listed in index.html once .js files converted to UTF8
body: <p>I developed a game in RPG Maker MV. This is a javascript frontend that allowed me to develop block/scratch programming which is then exported by the RPG Maker MV backend into an ANSI/UTF8 mixture of html5 / .js files. In other words, I know nothing about programming in javascript that would help me debug the issue as described now that the above is out of the way.</p>
  
  <p>Simplest Description:
  How do I make this plugins.js file load once the .js files for my HTML5 app have been converted from ANSI to UTF8 BOM?</p>
  
  <p>Issue:
  Once my app is packaged using either WinJS or Cordova in Visual Studio 2017 (latest version of everything) for UWP destination, a certain .js file (plugins.js I believe) is not being utilized (called?) making the app not run correctly in its packaged form. I narrowed this down by packaging the app without converting .js files to UTF8 for UWP, and it runs fine. Once I convert the .js files to UTF8 and package it again, the core of the RPG Maker MV game backend works, but the additional plugins I added to it are not working.</p>
  
  <p>Everyone I talk to about this issue shies away from it because they don't know what RPG Maker MV is or how it works. I don't understand why, because it is still just Javascript and literally anyone besides me spending 10 minutes would get farther debugging simply because you know what you are doing and I don't. I am seeking to understand but I am on the ground floor and have not made much headway since May when I started debugging this.</p>
  
  <p>I posted this on the RPG Maker MV forums, visual studio community, contacted RPG Maker MV support (they don't support UWP), and tried to find someone on codementor.io to help me. I also asked around at work where we have literally hundreds of software developers but this issue doesn't appeal to a wide audience. </p>
  
  <p>If you can help me you would have the thanks of myself and at least 3 reviewers of my published, broken game on the windows store. You would be an iconic hero for the ages, just like the one in my game. Well, actually it's an ironic hero.</p>
  
  <p>Please, how do I make this plugins.js file load once the .js files for my HTML5 app have been converted from ANSI to UTF8 BOM?
      //
      // main.js
      //</p>
  
  <pre><code>PluginManager.setup($plugins);
  
  window.onload = function() {
      SceneManager.run(Scene_Boot);
  };
  </code></pre>
  
  <p>And index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;meta name="apple-mobile-web-app-capable" content="yes"&gt;
          &lt;meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"&gt;
          &lt;meta name="viewport" content="user-scalable=no"&gt;
          &lt;link rel="icon" href="icon/icon.png" type="image/png"&gt;
          &lt;link rel="apple-touch-icon" href="icon/icon.png"&gt;
          &lt;link rel="stylesheet" type="text/css" href="fonts/gamefont.css"&gt;
          &lt;title&gt;Likely Story RPG&lt;/title&gt;
      &lt;/head&gt;
      &lt;body style="background-color: black"&gt;
          &lt;script type="text/javascript" src="js/libs/pixi.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/libs/pixi-tilemap.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/libs/pixi-picture.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/libs/fpsmeter.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/libs/lz-string.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_core.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_managers.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_objects.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_scenes.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_sprites.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/rpg_windows.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/plugins.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/main.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Update from comments below:
  Ok I'm uploading a zip folder now (2.6 gb) with everything in it you or anyone might need. This replicated the issue perfectly and with far less complexity in the game's code. The way to tell it's not working: In debug in visual studio, the app has picture overlay on bottom left. Clicking with mouse should bring up a menu. In packaged app the picture displays but does not run a menu event. 1drv.ms/f/s!AhExycO0yDOZhsdmVSBkhw9t_HNn3w</p>
  
  <p>Update: It looks like this was a pretty similar problem here, with no solution: <a href="https://stackoverflow.com/questions/22352909/grunt-and-uglifyjs-in-windows-app-development-utf8-problems?rq=1">Grunt and UglifyJS in Windows app development - UTF8 problems</a></p>