結果 : javascript substring is not defined