Added delete post frontend js