Add support for UMD (especially RequireJS).