Resolvidos problemas com o javascript