Detect DOM element insertion.