factored o2m and m2m select2 javascript together before further features