ToDo edit

Small javascript changes