deep copy of generatedJs parameter.
fix params duplicated bug