結果 : javascript error substring is not a function