adaptacoes javascript