Update node attribute

We'll call a callback function whenever the attributes of any DOM nodes are changes.