Javascript Update Array Of Objects In Angularjs