Improve JS in manageOrgs