Update One Object In Array Javascript Methods And Functions