How do I find element in array object and update source array in Javascript