Update flightdetector.js