Eventsource to javascript for realtime updates.