Cleanup

- Wrap the code in self-invoking anonymous function to prevent
"pollution" of global namespace
- Avoid errors in browser without console
- Stop data processing if there are no tweets