Simplifying the UMD wrapper and fixing closing syntax.