IMO MutationObserver's API is a bit difficult to grasp. For simpler cases for getting a callback when an element is created, I use spect[1] or sentinel[2].
1: https://github.com/dy/spect 2: https://github.com/kubetail-org/sentineljs
1: https://github.com/dy/spect 2: https://github.com/kubetail-org/sentineljs
Occasionally it might even be faster, since you're not iterating through the mutation records and testing for stuff you care about.