I guess what you are suffering from is not putting your code inside the $(document).ready()
method.
Change your jQuery code to look like this:
$(document).ready(function () {
$(".div1").on('click', 'li', function () {
var phonenumber = $(this).text();
$("#phones ul").append("<li>" + phonenumber + "</li>");
});
});