Replacing global declarations

Making global declarations to be locally. Hoisted the declaration of `AppDispatcher`, `TodoStore` and `callback` into the context of the main describe function, making them locally available for this context, instead of defining them as global variables.