javascript test if substring in string