$(document).ready(function(){
  var pairing_duration_ms;
  console.log("Loading...")
  $('button.duration-button').on('click', function(event){
    event.preventDefault();
    console.log($('input.duration').val());
    if($('input.duration').val() !== "" ){
      pairing_duration_ms = parseInt($('input.duration').val()) * 6000;
      console.log(pairing_duration_ms)
    } else {
      alert("Please Enter A Number")
    }
  });

  $('button.start-pairing').on('click', function(){
    setTimeout(function(){
      alert('Time to Switch It ^');
    }, pairing_duration_ms);
  });
});
$(document).ready(function(){
  var pairing_duration_ms;

  $('button.duration-button').on('click', function(event){
    event.preventDefault();

    if($('input.duration').val() !== "" ){
      pairing_duration_ms = parseInt( $('input.duration').val() ) * 6000;
    } else {
      alert("Please Enter A Number");
    }
  });

  $('button.start-pairing').on('click', function(){
    setTimeout(function(){
      alert('Time to Switch It ^');
    }, pairing_duration_ms);
  });
});
Clean up Test Code in Popup JS
Clean up Test Code in Popup JS
