(ensure-element e)
Coerce the argument to a dom element if possible.
(remove-children id)
Remove all children from the element with the passed id.
(replace-node old-node new-node)
Replace old-node with new-node. old-node can be an element or a keyword which is the id of the node to replace. new-node can be an element or an html string.
(set-text e s)
Set the text content for the passed element returning the element. If a keyword is passed in the place of e, the element with that id will be used and returned.