I have seen a few different methods to add elements to the DOM. The most prevelent seem to be, for example, either
document.getElementById(\'foo\').innerHTM
According to this benchmark data, you will receive much faster results with innerHTML than creating DOM elements. It's especially clear when using older IE versions.
innerHTML