Default locales and locales can be set before the js file is loaded

If the js file is loaded at the end of the body it's conceivable thes values may be set beforehand.