<script>
function addItem(){
var li = document.createElement("LI");
var input = document.getElementById("add");
li.innerHTML = input.value;
input.value = "";
document.getElementById("faves").appendChild(li);
}
</script>
<input type="button" id="btnAdd" value="Add" onclick="addItem()">