refactored DOMNodeInserted