Move EventSource initializaion to Document.ready()