Simple blackjack player vs computer with AngularJS running on NodeJS