Replace deprecated DOMNodeInserted with MutationObserver.