Fixed 'window not definded error when loading the compiled PIXI code'