Defined a function for finding an existing html object in the Doc