fix bug in UMD declaration