preferred_name.js - implement an exclusive or function