PIM-1113: Implements JS stuff for connector/alias selector