flights: Change active_page to 'flights' for "Select Pilot" page
flight.js: Optimized loops

Cache the array lengths and other variables
flights.js: Cache EPSG:4326 projection in WGS84_PROJ constant
flight.js: Simplified plane vector creation