code: function _readyResources() {
           if (getImageProgress() < 1 || getMixerProgress() < 1) {
              return window.setTimeout(_readyResources, 100);
           }
           gamejs.display.init();
           gamejs.image.init();
           gamejs.audio.init();
           gamejs.event.init();
           gamejs.math.random.init();
           readyFn();
        }
docs: 3.