I think you need a "var" here now? (the mapping variable is declared inside the forEach callback above)