Make the plugin AMD friendly.
Merge pull request #40 from jcbrand/master

Add support for AMD (asynchronous module definition)