Javascript Array Reduce Initial Value Definition