Add AMD support

Hi,

This pull add AMD support for the plugin.
It register jquery as a dependency and fallback to the default implementation if there is no AMD defined.

I don't think so much test overhead is necessary for this.