Update One Object In Array Javascript Function How To Use