Fix cards.js