Wrapped in UMD pattern for AMD support