Translation of js error messages