Use CommonJS, AMD or browser globals to create a jQuery plugin