remake TCard.js