this java script function create dom object of html document