Updated issue with deleting post, but it works without js