fix UMD: use this instead of window for global