browser: use more flexible UMD-pattern

Include a UMD-pattern that is suited to modules that make use of
dependencies.