Transforming the js connection to a bridge object

Signed-off-by: Anders Bech Mellson <mellson@icloud.com>