title: YouTube IFrame API Error
body: <p>I am having a problem loading the YouTube IFrame API.<br>
  I add the tag and YouTube loads their scripts, but when I call the constructor, I get an error.  </p>
  
  <pre><code>player = YT.Player('vidPlayer', {
      height: '390',
      width: '640',
      videoId: id,
      playerVars: {
          'rel': 0
      },
      events: {
          'onReady': playerReady,
          'onStateChange': playerStateChange
      }
  });
  </code></pre>
  
  <p>Please correct me if I am doing anything wrong there. When I call that constructor, it throws an error. This is what the console says:</p>
  
  <pre><code>Uncaught TypeError: a.G is not a function
  qb @ www-widgetapi.js:24
  P @ www-widgetapi.js:20
  X @ www-widgetapi.js:31
  onYouTubeIframeAPIReady @ script.js:55
  (anonymous function) @ www-widgetapi.js:39
  (anonymous function) @ www-widgetapi.js:39
  </code></pre>
  
  <p>Does anyone know a way to fix this?</p>