Fix UMD pattern by referring to define and require globally