Blackjack in JavaScript