working with html by the means of dom