title: THREE.OrbitControls is not a constructor
body: <p>I'm trying to add OrbitControls in my three.js project, but when I try to call the constructor it gives an uncaught type error "THREE.OrbitControls is not a constructor". I have searched for a solution, but the only thing I can find is explicitly importing the file. But when I do, it still gives the error. 
  This is my code:</p>
  
  <pre><code>    &lt;script src="JS/three.js"&gt;&lt;/script&gt;
      &lt;scirpt src="JS/OrbitControls.js"&gt;&lt;/scirpt&gt;
      &lt;script src="JS/Models/ModelLoader.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
  
          var scene = new THREE.Scene( );
          var camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.01, 10000 );
  
          var renderer = new THREE.WebGLRenderer( );
          renderer.setSize( window.innerWidth, window.innerHeight );
  
          document.body.appendChild( renderer.domElement );
  
          camera.position.z = 3;
          var controls = new THREE.OrbitControls(camera, renderer.domElement);//here is the problem
  
          var pointLight = new THREE.PointLight(0,2);
          pointLight.position.z = 2;
          scene.add(pointLight);
  
          // Game Logic
          var update = function( ){
  
  
  
          }
  
          // Draw Scene
          var render = function( ){
  
              renderer.render( scene, camera );
  
          }
  
          var testLoad = function(){
  
              var modelLoader = new ModelLoader();
              var obj = modelLoader.loadObj("/Res/Models/Characters/char1.obj", "/Res/Models/Characters/char1.mtl");
              scene.add(obj);
  
          }
  
          // Main Game Loop(update, render, repeat)
          var gameLoop = function( ){
  
              requestAnimationFrame( gameLoop );
  
              update( );
              render( );
  
          }
  
          gameLoop();
  </code></pre>
  
  <p>The ModelLoader is a custom class for loading obj files.</p>
  
  <p>Anyone that knows what I've done wrong? Thanks in advance!</p>