Correction to reference reduceRight for comparision with mozilla implementation