todolist javascript update