)
    // 3. This function creates an <iframe> (and YouTube player)
    //    after the API code downloads.
    function onYouTubeIframeAPIReady() {
      player = new YT.Player('tdfw', {
        height: '200',
        width: '305',
        videoId: 'HMUDVMiITOU',
        events: {
          'onReady': onPlayerReady,
          'onStateChange': onPlayerStateChange
        }
      });
    }
    window.onYouTubeIframeAPIReady = onYouTubeIframeAPIReady
  }
  function onPlayerReady(event) {
    console.log('ready