ht-header');
  div.innerHTML = FLIGHT_NAV;

  div.getElementsByClassName('flight-codes')[0].innerHTML = departCode + " to " + arriveCode;
  div.getElementsByClassName('flight-date')[0].innerHTML = departDate;

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

var createFlightElem = function(result, index){
  var div = document.createElement('div');
  div.setAttribute('class', 'flight');
  div.setAttribute('data-result', index);
  div.innerHTML = FLIGHT_TEMPLATE;

  div.getElementsByClassName('depart-time')[0].innerHTML = res