A helper to construct DOM in fewer script lines.