Make plugin AMD aware (works perfectly with requirejs and its optimizer now