結果 : substring is not a function in javascript