Have you added ACF's header to your page ? If not, add this at the very top : <?php acf_form_head(); ?>
. It will load their JS script. Then, change your script :
<script>
(function($) {
$(document).ready(function() {
acf.unload.active = false;
});
})(jQuery);
function onSubmit(token) {
document.getElementById("acf_testi").submit();
}
</script>