Javascript Array Reduce Initial Value Theorem Examples