Blackjack program in JavaScript