fixed js replace