Added support for multiple instances of with different locales

Provided a simple mechanism to allow this sample to be embedded in a page
multiple times with a different locale used in each instance.