jquery.backstretch.js
function (image) {
      for (var i = 0; i < cache.length; i++) {
        if (cache[i].src === image.src) {
          return cache[i];
        }
      }
      cache.push(image);
      return image;
    }
function (image) {
      for (var i = 0; i < cache.length; i++) {
        if (cache[i].src === image.src) {
          return cache[i];
        }
      }
      cache.push(image);
      return image;
    }
function ( image ) { for ( var i = 0 ; i < cache . length ; i ++ ) { if ( cache [ i ] . src === image . src ) { return cache [ i ] ; } } cache . push ( image ) ; return image ; }
Wrapper for cache
Wrapper for cache