Support AMD and Node modules