Trying to get registration and channel creation working in js.