Setting the stage and renderer

41     stage = new PIXI.Stage(0x000000);
42     renderer = PIXI.autoDetectRenderer(attrs.width, attrs.height);
43   
44     scope.stage = stage;
45     scope.renderer = renderer;

52     requestAnimFrame(animate);