Enter move and type into the input boxes and then click the button, this will add the movie and type and unique ID in the object.
var data = {items: [
{id: "1", name: "Snatch", type: "crime"}
]};
$('button').on('click',function(){
var name = $('#name').val();
var type = $('#type').val();
var id = parseInt(data.items[data.items.length-1].id)+1;
data.items.push({"id":id.toString(), "name":name,"type":type});
console.log(data);
});