Convert AMD modules to CommonJS modules