Add UMD loader for use with RequireJS

Change the loader to use the UMD jquery plugin pattern so that this
plugin can easily be used with RequireJS and other AMD systems, as well
as with traditional <script> tag loading or script concatenation.