Add AMD/CMD/CommonJS support