if(this.loaded[this.api] == false)
    {
        myself = this;
        this.onload[this.api].push(function()
        {