Fix lint issue in cards.js