JavaScript for finding matching strings within strings.