Adding AMD and CommonJS require support