title: requirejs opentok script error for: OT
body: <p>I'm trying to load opentokjs from cdn using requirejs as described here: <a href="https://forums.tokbox.com/javascript/loading-javascript-using-requirejs-t42411" rel="nofollow">https://forums.tokbox.com/javascript/loading-javascript-using-requirejs-t42411</a>.</p>
  
  <p>In my main.js i have</p>
  
  <pre><code>shim:{
      'ng-tok': {
          'exports': 'ng-tok',
          'deps': ['OT', 'angular']
      },
      'tbjs': {
          'exports': 'OT'
      }
  }
  
  paths:{
      'tbjs' : ['//static.opentok.com/webrtc/v2.2/js/opentok.min'],
  }
  </code></pre>
  
  <p>But I'm getting Script error for: OT</p>
  
  <p>How do I properly load opentokjs via requirejs?</p>