Fix support of UMD. See https://github.com/umdjs/umd/blob/master/returnExports.js