結果 : get index of substring javascript