made some changes in todoapp tutorial for javascript