結果 : substring is not a function javascript