A javascript function which provides in-browser dynamic document construction inspired by the DomBuilders found in ruby and groovy