testes js
refact