Replaced the functionality of attrchange so we don't use Mutation events