Wrapping in UMD definition, for AMD/CommonJS support, 0.8.12