結果 : replace is not a function error in javascript