Add UMD wrapper

Based on https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js