Using Reduce Method Javascript Compiler Codependents