title: How to use ES6 modules instead of namespaces in the global scope?
body: <p>When defining a class in ES6, it becomes available in the global scope, which you can prevent with the new ES6 bracket enclosure:</p>
  
  <pre><code>{
    class Car {
      constructor(make) { 
          this.make = make;
          this.currentSpeed = 25;
      }
  
      getSpeed(){
            console.log(this.make + ' is going ' + this.currentSpeed + ' mph.');
      }
    }
    window.MYNAMESPACE.Car = Car;
  }
  </code></pre>
  
  <p>I have multiple js files, each with their own class definition, and I make the classes available via MYNAMESPACE in the global scope. 
  So creating a new car from anywhere looks like:</p>
  
  <pre><code>var myCar = new MYNAMESPACE.Car();
  </code></pre>
  
  <p>How could I use ES6 modules for this? Is that even possible, or recommendable?</p>