Wrap plugin in umd pattern