Update Existing Object In Array Javascript Methods In Selenium