Javascript implementation of the game Blackjack