API docs: replaceAll and appendTo methods examples.