modify the todo.coffee

create an object for this application
create several functions to handle different events

* declare 9 functions but not defind then
defind part of function initform