Try removing the square bracketed numbers from the script for all the items you have added. For example
Change
var Instanti = e.parameters.Instanti[7];
to
var Instanti = e.parameters.Instanti;
Do this for the other items as well. Republish and try again.