load jquery plugins with require.使用require来加载jquery插件

the example:
(function () {
//Define the plugin.
function plugin($) {
$.fn.gamma = function() {
};
}

//Register the plugin.
if (typeof define !== 'undefined' && define.amd) {
define(['jquery'], plugin);
} else if (typeof jQuery !== 'undefined') {
plugin(jQuery);
}
}());