javascript check if string contains substring regex