if string has substring javascript