Replace Object In Array Javascript By Id