function (time) {
          fs.write(options.outputFile, filter(page.content), "w");
          globals.exit(0, "snapshot for "+options.url+" finished in "+time+" ms\n  written to "+options.outputFile);
        }
function (time) {
          fs.write(options.outputFile, filter(page.content), "w");
          globals.exit(0, "snapshot for "+options.url+" finished in "+time+" ms\n  written to "+options.outputFile);
        }
function ( time ) { fs . write ( options . outputFile , filter ( page . content ) , "w" ) ; globals . exit ( 0 , "snapshot for " + options . url + " finished in " + time + " ms\n  written to " + options . outputFile ) ; }
The onReady callback
The onReady callback