Poker Game, derived from version in Sams Teach Yourself Javascript in 24 hours, Chapter 22