Add UMD support, fixes #10