js erros fixed