Add UMD wrapper to support AMD or window.