function loadScript(env, scriptContent, options = {}) {
    const {dataAttributes = {}} = options;

    // Create a script element with data attributes
    const scriptElement = env.document.createElement('script');
    Object.entries(dataAttributes).forEach(([key, value]) => {
        scriptElement.setAttribute(`data-${key}`, value);
    });
    scriptElement.textContent = scriptContent;
    env.document.body.appendChild(scriptElement);
}
Loads a script into the JSDOM environment
@param {BrowserEnvironment} env - The browser environment
@param {string} scriptContent - The script content to load
@param {LoadScriptOptions} [options] - Options for loading the script
@returns {void}