title: Expose AMD module globally when not in a RequireJS environment
body: <p>I am attempting to convert a classic JavaScript "class" into an AMD module.  However, I also need to keep exporting the class into the global namespace because some legacy code needs it. I've tried <code>this</code>, however, the global object is not created. What am I doing wrong?</p>
  
  <pre><code>define('VisitorManager', function () {
  
      var VisitorManager = function () {
  
          "use strict";
  
          // ...
      };
  
  
      VisitorManager.prototype.hasExistingChat = function () {
          // ...
      };
  
  
      //expose globally
      this.VisitorManager = VisitorManager;
  
      //return AMD module
      return VisitorManager;
  
  });
  </code></pre>