MutationOberserver and Mutation Events

MutationObserver is the new way to observer changes in the DOM, like added and removed nodes and changed attributes. Before MutationObserver this was accomplished with Mutation Events, but still relevant for IE < 11.

Some nice reading:

See the console for information about what is going on.