Make Compatible w/ r.js Optimizer

This is the fix for #59.

If used with require.js/AMD, it no longer attempts to extend jQuery. I don't know of any way around this; AFAIK either jQuery has to be a dependency or not. The old code would check for the existence of the global jQuery object and alter behavior, making it dependent on loading order and therefore susceptible to mysterious (and random) breakage.