== shortest) || (bookAction === 'cheapest' && price === cheapestPrice) ? 1.0 : -1.0;
      core.endEpisode(r, r > 0);
    });

  });
}

window.onload = function() {
  core.startEpisode();
}
</script>
</head>
<body>
<div id="wrap">
  <div id="query"></div>
  <div id="area">
    <div id="menu">
      <h2 id="header-book">Book Your One-Way Flight</h2>
      <div class="input-container"><input id="flight-from" class="flight-input" type="text" placeholder="From:"></div>
      <div class="input-container"><input 