blackjack javascript with HTML5