update cards.js