Make plugin AMD aware (works perfectly with requirejs and its optimizer now
Merge pull request #15 from aaronjwood/master

Make plugin AMD aware