Adding Universal Module Definition for package loaders

Added support for [umdjs](https://github.com/umdjs/umd/blob/master/jqueryPlugin.js), for package loaders that support the AMD module definition, and fallback to browser globals.