<!DOCTYPE html>
<html class='nb_fullscreen'>
  <head>
    <meta charset="utf-8"/>
<!--
   Author: cf AUTHORS.txt 
   License:  Copyright (c) 2010-2012 Massachusetts Institute of Technology.
   MIT License (cf. MIT-LICENSE.txt or http://www.opensource.org/licenses/mit-license.php)
  -->
    <title>NB YouTube Viewer</title>
    <link type="text/css" href="/content/compiled/youtubeviewer.css" rel="stylesheet" />
    <!--<script src="http://www.youtube.com/iframe_api" type="text/javascript"></script>-->
    <script>
        var tag = document.createElement('script');
        tag.src = "https://www.youtube.com/iframe_api";
        var firstScriptTag = document.getElementsByTagName('script')[0];
        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
    </script>
    <script type="text/javascript" src="/content/compiled/youtubeviewer_NB.js"></script>
  </head>
  <body/>
</html>


<!DOCTYPE html>
<html class='nb_fullscreen'>
  <head>
    <meta charset="utf-8"/>
<!--
   Author: cf AUTHORS.txt 
   License:  Copyright (c) 2010-2012 Massachusetts Institute of Technology.
   MIT License (cf. MIT-LICENSE.txt or http://www.opensource.org/licenses/mit-license.php)
  -->
    <title>NB YouTube Viewer</title>
    <link type="text/css" href="/content/compiled/youtubeviewer.css" rel="stylesheet" />
    <!--<script src="http://www.youtube.com/iframe_api" type="text/javascript"></script>-->
    <script type="text/javascript" src="/content/compiled/youtubeviewer_NB.js"></script>
    <script>
        var tag = document.createElement('script');
        tag.src = "https://www.youtube.com/iframe_api";
        var firstScriptTag = document.getElementsByTagName('script')[0];
        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
    </script>
  </head>
  <body/>
</html>


Reorder scripts so onYouTubeIframeAPIReady won't trigger before listener is defined
Reorder scripts so onYouTubeIframeAPIReady won't trigger before listener is defined
