Hi Aert,
thank you so much for taking the time to look at this so quickly, I have compared the respective page where the error occurred with the pages that don’t throw the error, and found an old jQuery fisheye script, after removing this, the issue is now solved.