<script>
      var video = videojs(\'videosub\').ready(function(){

          // fire up the plugin
          var transcript = this.transcript();

          // attach the widget to the page
          var transcriptContainer = document.querySelector(\'#transcript\');
          transcriptContainer.appendChild(transcript.el());
      });
</script>