Bug fix: spaces not allowed in cookie names.
Moved gotActivity() to before the EventSource constructor, rather than after it.