Uppercase country/region code, fixes #35

The uppercase issue is only workaround-able from `l10n.js`; I also add a minor fix that will stop `alert()` in browsers without `console.log()`.