building a simple todo list with JS event delegation