fix "Uncaught ReferenceError: define is not defined"