update card.js