changed "append" to "replaceWith"