anchor.diff:                      document.getElementById( 'percentage' ).innerHTML = parseInt( percentage );
                   }
   
  -                function getJSONSync( url, data, callback ) {
  -                    // shift arguments if data argument was ommited
  -                    if ( jQuery.isFunction( data ) ) {
  -                        callback = data;
  -                        data = null;
  -                    }
  -
  -                    $.ajax({
  -                        type: 'GET',
  -                        url: url,
  -                        dataType: 'json',
  -                        success: callback,
  -                        data: data,
  -                        async: false
  -                    });
  -                }
  -
  -
                   function updateProgressBar(){
                       var stats_url = "/instance/<%= params['port'].to_i.to_s %>/stats.json";
  -                    getJSONSync( stats_url, function(data) {
  +                    $.getJSON( stats_url, function(data) {
                           if( data.stats == undefined ){ return }
                           setStats( data.stats );
                           percentage = (data.stats.auditmap_size / data.stats.sitemap_size) * 100
  
positive.code:                     updateOutput( );
                      setInterval( function() {
                            updateOutput( );
                      }, 1000 );
  
  
                      updateResults( )
  
negative.code:                     if( !document.getElementById( 'output_results' ) ) return;
  
                      var output_results_url = "/instance/<%= params['port'].to_i.to_s %>/output_results.json";
                      $.getJSON( output_results_url, function(data) {
                          document.getElementById( 'output_results' ).innerHTML = data.data;
                      });
                  }
  