Listing 2-9. Responding to User Input in the todo.html File