Writing auto-pilots in JavaScript for MSFS