Checks if jQuery is defined before exporting

I ran into issues when shimming and requiring `pinchZoom` (using Webpack to build modules) where `define.amd` was not `undefined`, but `define['jquery']` was. Solves issue by adding check for `define.jquery`.