finished ajax for blackjack