fix UMD to work with RequireJS optimizer