text: //jQuery is required to run this code
  $( document ).ready(function() {
  
      scaleVideoContainer();
  
      initBannerVideoSize('.video-module .vid img');
      initBannerVideoSize('.video-module .filter');
      initBannerVideoSize('.video-module video');
  
      $(window).on('resize', function() {
          scaleVideoContainer();
          scaleBannerVideoSize('.video-module .vid img');
          scaleBannerVideoSize('.video-module .filter');
          scaleBannerVideoSize('.video-module video');
      });
  
  });
  
  function scaleVideoContainer() {
  
      var height = $(window).height() + 5;
      var unitHeight = parseInt(height) + 'px';
      $('.hero').css('height',unitHeight);
  
  }
  
  function initBannerVideoSize(element){
  
      $(element).each(function(){
          $(this).data('height', $(this).height());
          $(this).data('width', $(this).width());
      });
  
      scaleBannerVideoSize(element);
  
  }
  
  function scaleBannerVideoSize(element){
  
      var windowWidth = $(window).width(),
      windowHeight = $(window).height() + 5,
      videoWidth,
      videoHeight;
  
      console.log(windowHeight);
  
      $(element).each(function(){
          var videoAspectRatio = $(this).data('height')/$(this).data('width');
  
          $(this).width(windowWidth);
  
          if(windowWidth < 1000){
              videoHeight = windowHeight;
              videoWidth = videoHeight / videoAspectRatio;
              $(this).css({'margin-top' : 0, 'margin-left' : -(videoWidth - windowWidth) / 2 + 'px'});
  
              $(this).width(videoWidth).height(videoHeight);
          }
  
          $('.hero .video-module video').addClass('fadeIn animated');
  
      });
  }
  