Pure javascript blackjack game