Changing exports to modules exports for CommonJS