api allowing manipulation of html-doms