JavaScript: reduceRight() method ~> Array