closer to an api for inserting and modifying html