Delete post worked with adding Javascript confirm() in index.html