fix todo list in js