Adding Array Items Javascript Function Syntax Parameters Vs Statistics