Add CommonJS and RequireJS support