Persistant blackjack using angularjs and rails 4.1