Dom Manipulação JS
// Add new item to end of list
var list = document.getElementsByTagName('ul')[0];
var newItemLast = document.createElement('li');
var newTextLast = document.createTextNode('Item 2');
newItemLast.appendChild(newTextLast);
list.appendChild(newItemLast);
Anthony Smith