lassName('time-duration')[0].setAttribute('data-duration', result.duration);
  div.getElementsByClassName('flight-price')[0].innerHTML += '$' + result.price;
  div.getElementsByClassName('flight-price')[0].setAttribute('data-price', result.price);

  $('#results').append(div);
}

var generateFlights = function(departCity, arriveCity, day){
  var results = [];
  var totalFlights = core.randi(3, MAX_FLIGHTS);
  var flightStart = new Date(Date.parse(day));
  var flightStartMax = new Date(Date.parse(day) + DAY_