jQuery AJAX watcher. Fixed usage of replaceWith().