JS code rearrange
EventSource: remove disconnected clients from the connection pool
Add missed parentheses
Fix zero thread deley