javascript exists in array of objects