var AT1 = new Tools(), AT2 = new Tools(), AT3 = new Tools(); AT1.test(function(){ alert("1"); }); AT2.test(function(){ alert("2"); }); AT3.test(function(){ alert("3"); });