Is having elements defined in strings the best way? Or would it be better to define it as:
var listItem = document.createElement("li"); 
this.listElement.appendChild(listItem);

I'm generally curious as to which you think is the better approach. Leaning towards C#, I generally stay away from declaring it in the strings.