Updated utils.js to use forEach for interation.