Vanilla Javascript Blackjack