ready-flag in js Connection