Added AMD Support using a UMD pattern