結果 : javascript replace only working on first instance