Observer class, to observe a dom element for changes