add addtodo function
delete useless js