JavaScript API for connecting to Channel Server