JavaScript piece for code reviewer
update repository selections when user selection is changing.