Add CommonJS/AMD support with UMD wrapper.