'cards' reference should be 'clubs'
In the example at the bottom of page 223, there is a reference to cards that should be clubs.
Specifically,
... cards.push({"rank":rank, "suit":"clubs"})
should actually be
... clubs.push({"rank":rank, "suit":"clubs"})
Thanks to Douglas Eichelberger for reporting this!