added flight JS via generator