Array Object Find Value Javascript Function