allow node-style `require()` in cropper

Currently, cropper only supports usage through AMD modules (e.g. requireJS) or browser globals.

This changeset adds support for server-side `require()` style dependency declarations.

Pattern adopted from jrburke's UMDJS repo: https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js