fixed m2j.js replace error