fixed card.js post and delete