Javascript version of blackjack - my first JS project