Replacing contents of target element instead of appending comments