sync html/dom