added javascript to make it so that users cant select a major/minor more than once