a todo in javascript designed for teaching