updated todo.js script with default and toggle function