javascript texas poker logic