Js Find Index Of Object In Array By Value