javascript test if string contains substring