Javascript Get Index Of Matching Item In Array Literal An Array