Blackjack written in Javascript