Update to use a UMD pattern