Blackjack game implementation in JS