Adding appropriate classes to your elements and using `getElementsByClassName` would be preferable to this somewhat convoluted ID scheme (a lot of this code would need to be changed if, for instance, you added another button or another element within todo items).