javascript and todo list