How can I avoid recursion in this JavaScript function that uses Promises? 1:18 | Procesando video... Cargando... Descargar