javascript substring exists in string