a todo app as a js exercise