TODO list in JavaScript