string has substring javascript