Add AMD/exports/browser detection