preferred_name.js - new working code w/ JSFIDDLE link