r xhr = new XMLHttpRequest();
            xhr.open("POST", "/todo");
            var json = JSON.stringify({
                Text: text
            });
            xhr.send(json);
            xhr.onreadystatechange = function () {
                if (xhr.readyState === 4) {
                    var item = JSON.parse(xhr.responseText);
                    CurrentItems.push(item);
                    renderItems();
                }
            };
        }
    }, false);

    // delete item from items
    (fu