"ReferenceError: define is not defined" fix