title: Cannot find module in Electron
body: <p>I am currently working on Electron with Babylon. I found <a href="https://github.com/boehm-s/electron-babylon-test" rel="nofollow noreferrer">this repo</a> which I basically used as a boilerplate for my own project. 
  Everything was working well until I tried to add <a href="http://pep.briangonzalez.org/" rel="nofollow noreferrer">jquery.pep.js</a> for other needs.
  I keep on having this mistake :</p>
  
  <blockquote>
    <p>Uncaught Error: Cannot find module 'jquery.pep.js'</p>
  </blockquote>
  
  <p>I installed both libraries with "npm i -S jquery" and "npm i -S jquery.pep.js". In order to make jquery works, I added this script in the head of my index.html </p>
  
  <pre><code>&lt;script&gt; delete window.module; &lt;/script&gt;
  </code></pre>
  
  <p>and this line in the top of my main.js :</p>
  
  <pre><code>window.$ = window.jQuery = require('jquery');
  </code></pre>
  
  <p>Now, jquery is working fine but for some reasons, jquery.pep.js module still can't be found. I tried to use 'require' but I have the same error</p>
  
  <p><strong>main.js</strong></p>
  
  <pre><code>window.$ = window.jQuery = require('jquery'); 
  var pep = require('jquery.pep.js');
  </code></pre>
  
  <p><strong>Project structure</strong> <br>
  <br>
  css/<br>
  img/ <br>
  js/ <br>
  -- main.js <br>
  node_modules/ <br>
  index.html<br>
  index.js<br>
  package.json<br>
  renderer.js</p>