for the user.
      var fakeFlights = generateFlights(inputOrigin, inputDestination, inputDate);
      for(var i=0;i<fakeFlights.length; i++){
        createFlightElem(fakeFlights[i]);
      }
    }

    $('.flight-price').on('click', function(){
      var $parent = $(this).parents('.flight');
      var price = parseInt($parent.find('.flight-price').attr('data-price'));
      var duration = parseInt($parent.find('.time-duration').attr('data-duration'));
      var r = (bookAction === 'shortest' && duration =