Javascript port of ruby video poker game.