Add debug output of eventSource on client (JS)