Fix global namespace in UMD distribution.