Fix protocol js connect