         SCRIPTS = []
         SCRIPT_URLS = []
 
-        async.eachSeries sites, ((site, next) ->
+        site_iterator = (site, next) =>
           get site, (err, resp, body) ->
             if resp.statusCode < 200 or resp.statusCode > 302 or err
               switch body

              }
              return next()

            log "#{type} RETRIEVED: #{site}"
            cacheCount resp.headers, type

            RAW_DATA.SCRIPTS_LOADED++
            next()
        ), done

      # format errors to github markup, copy to clipboard
      compileErrors = (next) ->

              return next() unless results
              SITES.push result for result in results
              next()

          if debug_mode
            async.eachSeries domains, domain_iterator, -> done null, SITES
          else
            async.each domains, domain_iterator, -> done null, SITES

        async.waterfall [
          (next) -> getDomains next
