support fancy array in AMD, support .replace and .split