allows a user to delete a post and includes a jquery alert to confirm