iframe в табах

HTML

<div class="wrapper">

  <div class="tabs-video">
      <ul class="tabs-videonav">
          <li><a href="#ts1">Плеер 1</a></li>
          <li><a href="#ts2">Плеер 2</a></li>
      </ul>
      <div class="clearfix"></div>
      <div class="tabs-videobox" id="ts1">
          <div class="video-responsive">
            <iframe width="612" height="344" src="https://www.youtube.com/embed/Tgk_63b-Mrw?feature=oembed" frameborder="0" allowfullscreen></iframe>
          </div>
      </div>
      <div class="tabs-videobox" id="ts2">
          <div class="video-responsive">
            <iframe width="560" height="315" src="https://www.youtube.com/embed/RWCQ22JyCL4" frameborder="0" allowfullscreen></iframe>
          </div>
      </div>
  </div>

</div>

CSS

html, body {min-height:100%;height: 100%; padding:0;margin:0}
    ul, ol {    list-style: none;}
    .clearfix:before, .clearfix:after {content: " "; display: table;}
    .clearfix:after {clear: both;}
    .wrapper {height:100%;width:800px; margin:0 auto;padding:50px 0}
    .tabs-video {overflow:hidden;}
    .tabs-videobox {position:relative; overflow:hidden; z-index:302;background:#000}
    .tabs-videonav {overflow:hidden; margin:0 0 20px 0; float:right;}
    .tabs-videonav li {float: left;}
    .tabs-videonav li a {display:block; color: #fff; height: 30px; font-size: 13px; padding: 0 14px; font-weight: 700; line-height: 30px; text-transform: uppercase;border-right:1px solid #989CA5; background-color: #7e8594;}
    .tabs-videonav li:first-child a {border-top-left-radius:2px; border-bottom-left-radius:2px;}
    .tabs-videonav li:last-child a {border-top-right-radius:2px; border-bottom-right-radius:2px; border-right:none;}
    .tabs-videonav li a:hover {color: #fff;  background-color: #989CA5;}
    .tabs-videonav li a.selected, .tabs-videonav li a:hover.selected {color: #fff; background-color: #f26739;}
    iframe {width:100%;height:450px;}

JavaScript

$(document).ready(function(){
        var tabContainers = $('.tabs-video .tabs-videobox');
        tabContainers.each(function(){
            var src = $(this).find('iframe').prop('src');
            $(this).data('isrc', src);
        });
        tabContainers.hide().filter(':first').show();
        $('.tabs-video .tabs-videonav a').click(function () {
            tabContainers.hide();
            tabContainers.find('iframe').prop('src', '');
            var cont = tabContainers.filter(this.hash);
            cont.find('iframe').prop('src', cont.data('isrc'));
            cont.show();
            $('.tabs-video .tabs-videonav a').removeClass('selected');
            $(this).addClass('selected');
            return false;
        }).filter(':first').click();
    });