The PigLatin game in Javascript