Use EventSource instead of window.EventSource