add some functionality to Dom class, Element class.