Update todos.js

changed toDoList[i].length to toDoList[i].id (typo)