Split out an 'Html' module, with the basic operations on HTML.
Combine "insert_between" and "concat" into a single function with an optional separator.
Make (most) globals writeable only from a single module.