Javascript helper code.
Modified the sse server to be a class.