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.
Merge pull request #88 from jim-y/patch-2

Replacing global declarations