Add UMD support

@iampseudo do we need the `[]`? This function never looks at its arguments anyway :).