add AMD and CommonJS loader