EventSource should extends js.Object