ReferenceError on `adapter` here. Maybe add `var adapter = adapterPair.join(' - ');` after `var remote`?