Use $ more consistently in variable names pointing to dom nodes
Rename xxxTodoItem -> xxxTodo
Rename toggleTodo -> toggleClass
Remove unused window param, remove if-else from matches()
Add event chain creation functions
Use document.querySelector to fetch dom nodes