console based blackjack in JS and Ruby