add in watching for attribute changes (class attribute only for now). this does not work in older webkit because they did not add support for DOMAttrModified.