Fix AJAX for adding to to-do list.