Make plugin AMD/requirejs compatible as per https://github.com/umdjs/umd/blob/master/jqueryPlugin.js