title: How to implement 'ES6 imports' in es5 with module pattern
body: <p>i wrote 3 modules ( Model, View, Controller ) with pure JS syntax.
  I mean like that:</p>
  
  <pre><code>var Model = (function () {
    //...
  })();
  
  var View = (function () {
    //...
  })();
  
  var Controller = (function (model, view) {
    //do the job...
  })(Model, View);
  </code></pre>
  
  <p>how can i simulate imports/exports using JS (ES5.1)?
  I just want to divide code into separated files using only JS.</p>
  
  <p>I tried to transpile ES6 imports via babel and it created someting with like:</p>
  
  <pre><code>  var model = require('model'); 
  </code></pre>
  
  <p>but when i add that to my code i got error that "require is not allowed"</p>
  
  <p>//* I dont want to use babel in projects</p>