                  additionalFunc.call(this);
                    } else if (typeof additionalFunc === 'string') {
                        try {
                            new Function('this', additionalFunc).call(this);
                        } catch (e) {
                            console.error('Error executing additional function:', e);
                        }
                    }
                }
            };
            
            // Assign the event handler function to the corresponding eve