Get Index Of Object In Array Javascript By W3schools