fix translation js bugs