a javascript API to get flight data