Adding Array Items Javascript Function Examples