erHTML += `<p><strong>Server:</strong> ${question}</p>`;
    chatbox.innerHTML += `<p><strong>DataberryStore:</strong> ${decodedOutputText}</p>`;
    chatbox.scrollTop = chatbox.scrollHeight;

    // Check if WebSocket connection is open before sending message to the server
    if (ws.readyState === WebSocket.OPEN) {
      const message = JSON.stringify({ text: outputText });
      ws.send(message);
    }
  } catch (error) {
    console.error(error);
  }
}

// Use the received text as the question input for