Move EventSource init to jquery startup