resourceBaseHref = function() {
    return (window.$g && window.$g.resourceBaseHref) || document.location.href;
}
Initialize all gamejs modules. This is automatically called
by `gamejs.ready()`.
@returns {Object} the properties of this objecte are the moduleIds that failed, they value are the exceptions
@ignore