this could be slow in case a lot of items are appended... you might consider using a DocumentFragment, see e.g. http://ejohn.org/blog/dom-documentfragments/