Small updates to element binding
.forEach() replaced with .reduce()