Change Object Property In Array Javascript Iteration