Uncaught ReferenceError: define is not defined

In window environment you can't just ask for undefined variable.