a terminal blackjack game ported to javascript