sync html/xhr