Wrap the globalization block in a function so that it can be invoked multiple times.
Merge pull request #1051 from BladeRunnerJS/rerunnable-globalization-block

Wrap the globalization block in a function so that it can be invoked mul...