title: IE11 JavaScript (Error: SCRIPT445) "Object doesn't support this action"
body: <p>I use a Javascript solution which loads the youtube player API asynchronously.
  The whole script is supposed to play the video when scrolled to its position.
  It works in all browsers and also in IE(11), but <strong>sometimes</strong> in IE I get an error in Developer Tools: <em>SCRIPT445 (Object doesn't support this action)</em>. </p>
  
  <p>The Youtube Player still works but it seems to crash other scripts. I looked around in the web and also here on Stackoverflow. There seem to be others who have similar problems but they were too specific. Maybe someone could help me with this one. Here is the part of the code which makes the problem:</p>
  
  <pre><code>var yt_int, yt_players={},
      initYT = function() {
          $(".ytplayer").each(function() {
              yt_players[this.id] = new YT.Player(this.id);    &lt;-- Error line 
          });
      };
  
  $.getScript("//www.youtube.com/player_api", function() {
      yt_int = setInterval(function(){
          if(typeof YT === "object"){
              initYT();
              clearInterval(yt_int);
          }
      },500);
  });
  </code></pre>