preferredName game, functional 

(get it? functional? because it is a function. Haha, so funny.)
lets ditch the script tag and put this in an html file