[javascript] How does internationalization work in JavaScript?