re-factored code for modular-todo-app 

1. Replaced double quotes with single quotes as interpolation was not used
2. Removed unused variables
3. Removed multiple var statements