Add UMD wrapper

Added a UMD wrapper (from https://github.com/umdjs/umd/blob/master/jqueryPlugin.js) which enables support in RequireJS environments.