wrap plugin in umd