Modify object's properties inside the DOM Tree