flight.js: Added local "geometries" variable to simplify code
flight.js: Only access geometries.length once
js: Fixed "line too long" linter warnings