"Delete post" button and JavaScript function added