Fixed UMD

You were using version that exported Function wrapped in Object. This
was causing type errors when using with browserify. I also named the
module so #1 can also be closed.