cleanup of poker.js