fixed `append` function(replaceWith, after, prepend)