fix card js