code: function err(){
              var src = this.src;
              if (onerror) 
                  onerror({
                      loaded: j, 
                      total: total, 
                      percent: (j / total * 100),
                      src:src
                  });
             		
              j++;
              if(j === total && oncomplete) oncomplete();
          }
docs: Error function