Add some DOM-like methods to Element