experimenting with javascript by implementing a game of blackjack