Rewrite of flightjs application example with CanJS