Fix "Error: Mismatched anonymous define() module" when using r.js

Using the r.js optimizer throws an "Error: Mismatched anonymous define() module" error if `window` is included in the define call. Removing it fixes the problem