[jQuery] FlyDOM: Having trouble creating DOM elements on the fly

[jQuery] FlyDOM: Having trouble creating DOM elements on the fly


Hi,
I just downloaded the plugin to help create DOM elements on the fly
(http://flydom.socianet.com/). I'm trying to add elements to an
unordered list. I have an empty unordered list to start:

<ul id="categories"></ul>


but this code
$(document).ready(function() {
for (key in g_gosArr) {
$('#categories').createAppend(
'li', {}, [
"text"
]);
} // for
});
adds "<li><text/></li>" to the dom and I want to add "<li>text</li>"
to the DOM. How can I correct the above?
Thanks, - Dave