Update ServerSentEvent.js

rewrite