As I had already advised:
Experiment loading your global mode “.js” sketch file before the “p5.min.js” library file.