Creating A Javascript Functions With Parameters Javascript For Loop