Fix typo in card JS code