Charts mockup now works.

- Moved functions inside the module's scope because of namespace
  collisions.
- Cleaned up the RespondentList controller quite a bit.