add support for UMD

We've considered adding support for UMD for simple integration across different projects and not just as a jQ plugin. This is evaluated up front, then works as normal.