How To Update Object In Array Javascript