Use EventSource instead of window.EventSource in chat