function run_commands() { const command = document.getElementById('command').value; fetch('/commands', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ command: command }) }) .then(response => response.text()) .then(data => { console.log(data); }); } function callFunctionTwo() { fetch('/function_two', { method: 'POST' }) .then(response => response.text()) .then(data => { console.log(data); }); }